package nc.impl.gl;

import nc.bs.gl.assiobill.bp.BillCopyBP;
import nc.bs.gl.assiobill.bp.GenVoucherBP;
import nc.itf.gl.IGenVoucherServer;
import nc.vo.gl.assiobill.AssIOBillVO;
import nc.vo.org.OrgVO;
import nc.vo.pub.BusinessException;
import nc.vo.pub.lang.UFDate;

public class GenVoucherServerImpl implements IGenVoucherServer {

	@Override
	public void genVoucherBG__RequiresNew(OrgVO orgVO, UFDate bgdate) throws BusinessException {
		new GenVoucherBP().doforBG(orgVO.getPk_org(), bgdate);
	}

	@Override
	public void genVoucherAC__RequiresNew(OrgVO orgVO, UFDate busidate) throws BusinessException {
		new GenVoucherBP().doforAction(orgVO.getPk_org(), busidate);
	}

	@Override
	public void assioDataSync__RequiresNew(OrgVO destOrg, AssIOBillVO[] srcvos) throws BusinessException {
		new BillCopyBP().exec(srcvos, destOrg.getPk_org()); 
	}

}
